<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Script_Test.html</title>
<script src = '/Web/03JavaScript/01ScriptTest.js'>
</script>
<!-- <script>
	window.onload= function() {
		var b = document.getElementById("btn1");
		b.onclick = function(){							/*두번째 방법  */
			var s1 = document.getElementById("su1");
			var s2 = document.getElementById("su2");
			
			var r = Number(s1.value) + Number(s2.value);
			alert("r=" + r);			
		}
		
	}
</script> -->
<script src = '/Web/03JavaScript/01ScriptTest.js'>
</script>
</head>
<body>

<h1>JavaScript 작성방법</h1>
<input type="button" value= "버튼" onclick= "alert('확인')"/>	<!--첫번째 방법-->
<br/>
<input type="text" id="su1" value= "50" size = "10" /> +
<input type="text" id="su2" value= "100" size = "20" />
<input type="button" id="btn1" value= "add" />
<br/>
<input type="range" value ="50" min="0" max="100" id= "range"/>
<input type="button" id="btn2" value ="확인"/>
</body>
</html>